import request from '@/utils/request'

// 查询合格证打印列表
export function listCertificatePrint(query) {
  return request({
    url: '/nongjt/certificatePrint/list',
    method: 'get',
    params: query
  })
}

// 查询合格证打印详细
export function getCertificatePrint(id) {
  return request({
    url: '/nongjt/certificatePrint/' + id,
    method: 'get'
  })
}

// 新增合格证打印
export function addCertificatePrint(data) {
  return request({
    url: '/nongjt/certificatePrint',
    method: 'post',
    data: data
  })
}

// 修改合格证打印
export function updateCertificatePrint(data) {
  return request({
    url: '/nongjt/certificatePrint',
    method: 'put',
    data: data
  })
}

// 删除合格证打印
export function delCertificatePrint(ids) {
  return request({
    url: '/nongjt/certificatePrint/' + ids,
    method: 'delete'
  })
}

// 导出合格证打印
export function exportCertificatePrint(query) {
  return request({
    url: '/nongjt/certificatePrint/export',
    method: 'post',
    params: query
  })
}
